package cn.bytecollege.user.service;

import cn.bytecollege.common.entity.Orders;
import cn.bytecollege.user.dao.OrdersDao;

public class OrdersService {
    OrdersDao ordersDao=null;
    public OrdersService(){
        ordersDao=new OrdersDao();
    }
    /**
     * 创建总订单
     */

    public int save(Orders orders) {
        return ordersDao.save(orders);
    }
    /**
     * 根据用户Id查询出总订单
     * @param Id
     * @return
     */

    public Orders findById(Integer Id) {
        return ordersDao.findById(Id);
    }

}
